package com.oa.pojo;


import java.io.Serializable;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


/**
* 
* @TableName role
*/
@ApiModel(value = "角色实体类Role")
@Data
public class Role implements Serializable {

    /**
    * 主键ID
    */
    @ApiModelProperty("主键ID")
    private Integer id;
    /**
    * 1启用2停用
    */
    @ApiModelProperty("1启用2停用")
    private Integer status;
    /**
    * 角色名称
    */

    @ApiModelProperty("角色名称")
    private String roleName;
    /**
    * 角色简介
    */

    @ApiModelProperty("角色简介")
    private String remark;
    /**
    * 创建日期
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("创建日期")
    private Date createDate;
    /**
    * 修改日期
    */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("修改日期")
    private Date updateDate;

    public Role() {
    }

    public Role(Integer id, Integer status, String roleName, String remark, Date createDate, Date updateDate) {
        this.id = id;
        this.status = status;
        this.roleName = roleName;
        this.remark = remark;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }
}
